package com.laurent.brewerhistory.dao;

import android.content.Context;

import com.laurent.brewerhistory.beans.Beer;
import com.laurent.brewerhistory.beans.Brewing;
import com.laurent.brewerhistory.beans.Recipe;

public class DAOFactory {

	/**
	 * @return A dao object in order to access database for {@link Beer}
	 */
	public static DAO<Beer> getBeerDAO(Context context) {
		return new BeerDAO(context);
	}

	/**
	 * @return A dao object in order to access database for {@link Brewing}
	 */
	public static DAO<Brewing> getBrewingDAO(Context context) {
		return new BrewingDAO(context);
	}


	/**
	 * @return A dao object in order to access database for {@link Recipe}
	 */
	public static DAO<Recipe> getRecipeDAO(Context context) {
		return new RecipeDAO(context);
	}
}
